import java.util.Scanner;

public class dome7 {
    public static void main(String[] args) {
        System.out.println("请输入网购金额");
        Scanner sc1=new Scanner(System.in);
        double a= sc1.nextDouble();
        System.out.println("请输入与发货点之间的公里数");
        Scanner sc2= new Scanner(System.in);
        double distance=sc2.nextDouble();
        double b=0;
        if(distance>=0&&distance<=10){
            b=10;}
        else if(distance>10&&distance<=50){
            b=50;}
        else if(distance>50&&distance<=100){
            b=100;}
        else if(distance>100){
            b=200;}
        a=a+b;
        System.out.println("您所需缴纳的总金额为"+a);

    }
}